home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Magazin: Amiga-CD 1996 March
/
Amiga-CD 1996 #3.iso
/
pd-software
/
mui_3.1
/
developer
/
oberon
/
txt
/
muinotify.mod
< prev
next >
Wrap
Text File
|
1996-01-19
|
5KB
|
142 lines
MODULE MUINotify;
(* $StackChk- $NilChk- $RangeChk- $CaseChk- $OvflChk- $ReturnChk- $ClearVars- *)
(* This module is generated by "GenMuiO" © 1995 by Albert Weinert *)
IMPORT
clf := Classface,
e := Exec,
m := Mui,
RootClass,
I := Intuition,
y := SYSTEM;
CONST
name *= m.cNotify;
TYPE
Class *= UNTRACED POINTER TO ClassDesc;
ClassDesc *= RECORD( RootClass.RootClass ) END;
VAR
class * : I.IClassPtr;
PROCEDURE ( VAR c:ClassDesc ) CopyClass*( obj : m.Object );
BEGIN
IF obj # NIL THEN
e.CopyMemAPTR(y.ADR(c),clf.InstData(c.class,obj),c.class.instSize); (* copy into boopsi obj *)
END;
END CopyClass;
PROCEDURE ( VAR c:ClassDesc ) Cleanup;
VAR msg : I.Msg;
BEGIN
msg.methodID := m.mCleanup;
IF clf.CoerceMethodA( c.class, c.object, msg ) = NIL THEN END;
END Cleanup;
PROCEDURE ( VAR c : ClassDesc ) mCallHook*( VAR msg : m.pCallHook ):e.APTR;
BEGIN
msg.msg.methodID := m.mCallHook;
RETURN clf.DoSuperMethodA( c.class, c.object, msg )
END mCallHook;
PROCEDURE ( VAR c : ClassDesc ) mFindUData*( VAR msg : m.pFindUData ):e.APTR;
BEGIN
msg.msg.methodID := m.mFindUData;
RETURN clf.DoSuperMethodA( c.class, c.object, msg )
END mFindUData;
PROCEDURE ( VAR c : ClassDesc ) mGetUData*( VAR msg : m.pGetUData ):e.APTR;
BEGIN
msg.msg.methodID := m.mGetUData;
RETURN clf.DoSuperMethodA( c.class, c.object, msg )
END mGetUData;
PROCEDURE ( VAR c : ClassDesc ) mKillNotify*( VAR msg : m.pKillNotify ):e.APTR;
BEGIN
msg.msg.methodID := m.mKillNotify;
RETURN clf.DoSuperMethodA( c.class, c.object, msg )
END mKillNotify;
PROCEDURE ( VAR c : ClassDesc ) mMultiSet*( VAR msg : m.pMultiSet ):e.APTR;
BEGIN
msg.msg.methodID := m.mMultiSet;
RETURN clf.DoSuperMethodA( c.class, c.object, msg )
END mMultiSet;
PROCEDURE ( VAR c : ClassDesc ) mNoNotifySet*( VAR msg : m.pNoNotifySet ):e.APTR;
BEGIN
msg.msg.methodID := m.mNoNotifySet;
RETURN clf.DoSuperMethodA( c.class, c.object, msg )
END mNoNotifySet;
PROCEDURE ( VAR c : ClassDesc ) mNotify*( VAR msg : m.pNotify ):e.APTR;
BEGIN
msg.msg.methodID := m.mNotify;
RETURN clf.DoSuperMethodA( c.class, c.object, msg )
END mNotify;
PROCEDURE ( VAR c : ClassDesc ) mSet*( VAR msg : m.pSet ):e.APTR;
BEGIN
msg.msg.methodID := m.mSet;
RETURN clf.DoSuperMethodA( c.class, c.object, msg )
END mSet;
PROCEDURE ( VAR c : ClassDesc ) mSetAsString*( VAR msg : m.pSetAsString ):e.APTR;
BEGIN
msg.msg.methodID := m.mSetAsString;
RETURN clf.DoSuperMethodA( c.class, c.object, msg )
END mSetAsString;
PROCEDURE ( VAR c : ClassDesc ) mSetUData*( VAR msg : m.pSetUData ):e.APTR;
BEGIN
msg.msg.methodID := m.mSetUData;
RETURN clf.DoSuperMethodA( c.class, c.object, msg )
END mSetUData;
PROCEDURE ( VAR c : ClassDesc ) mWriteLong*( VAR msg : m.pWriteLong ):e.APTR;
BEGIN
msg.msg.methodID := m.mWriteLong;
RETURN clf.DoSuperMethodA( c.class, c.object, msg )
END mWriteLong;
PROCEDURE ( VAR c : ClassDesc ) mWriteString*( VAR msg : m.pWriteString ):e.APTR;
BEGIN
msg.msg.methodID := m.mWriteString;
RETURN clf.DoSuperMethodA( c.class, c.object, msg )
END mWriteString;
PROCEDURE Dispatch * ( cl : I.IClassPtr; obj : I.ObjectPtr; msg : I.MsgPtr ):e.APTR;
VAR c : Class;
BEGIN
IF msg.methodID # I.new THEN
c := RootClass.BoopsiToObj( cl, obj )(Class);
END;
CASE msg.methodID OF
| m.mCallHook : RETURN c.mCallHook( msg^(m.pCallHook) );
| m.mFindUData : RETURN c.mFindUData( msg^(m.pFindUData) );
| m.mGetUData : RETURN c.mGetUData( msg^(m.pGetUData) );
| m.mKillNotify : RETURN c.mKillNotify( msg^(m.pKillNotify) );
| m.mMultiSet : RETURN c.mMultiSet( msg^(m.pMultiSet) );
| m.mNoNotifySet : RETURN c.mNoNotifySet( msg^(m.pNoNotifySet) );
| m.mNotify : RETURN c.mNotify( msg^(m.pNotify) );
| m.mSet : RETURN c.mSet( msg^(m.pSet) );
| m.mSetAsString : RETURN c.mSetAsString( msg^(m.pSetAsString) );
| m.mSetUData : RETURN c.mSetUData( msg^(m.pSetUData) );
| m.mWriteLong : RETURN c.mWriteLong( msg^(m.pWriteLong) );
| m.mWriteString : RETURN c.mWriteString( msg^(m.pWriteString) );
ELSE
RETURN RootClass.Dispatch( cl, obj, msg );
END;
END Dispatch;
BEGIN
class := m.GetClass( name );
IF class = NIL THEN HALT( 205 ) END; (* Error : Object not Found *)
CLOSE
IF class # NIL THEN m.FreeClass( class ) END;
END MUINotify.